#ifndef __SYSTIMER_H__
#define __SYSTIMER_H__
#include "gd32f10x.h"

struct System_Timer
{
	uint32_t systemCnt;
	uint8_t  flag5ms 	: 1;
	uint8_t  flag10ms	: 1;
	uint8_t  flag20ms	: 1;
	uint8_t  flag50ms	: 1;
	uint8_t  flag100ms	: 1;
	uint8_t  flag200ms	: 1;
	uint8_t  flag500ms 	: 1;
	uint8_t  flag1000ms : 1;
};

extern struct System_Timer systemTimer;

extern void systimer_init(void);
extern void delay_us(uint32_t us);
extern void delay_ms(uint32_t ms);
#endif

